package net.huashitong.scheduling.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;
import net.huashitong.scheduling.dao.TownProjectDetailDao;
import net.huashitong.scheduling.entity.TownProjectDetail;
import net.huashitong.scheduling.entity.TownProjectList;
import net.huashitong.scheduling.filter.ProjectReserveFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TownProjectDetailService extends StringPKService<TownProjectDetail> {
    @Autowired
    private TownProjectDetailDao dao;

    @Override
    protected BaseDao<TownProjectDetail, String> getDao(){
        // TODO Auto-generated method stub;
        return dao;
    }

    public List<TownProjectDetail> queryByIdAndMonthAndYear( String studentId,ProjectReserveFilter filter){
        return dao.queryByIdAndMonthAndYear(studentId, filter);
    }

    public List<Map<String, Object>> querytownDetailListByMonthAndYear(String studentId, ProjectReserveFilter filter){
        return dao.querytownDetailListByMonthAndYear(studentId,filter);
    }

    public List<TownProjectDetail>  queryByTownDetailAndMonthAndYear(String townDetail, ProjectReserveFilter filter ){
        return dao.queryByTownDetailAndMonthAndYear(townDetail,filter);
    }
}
